package modele;


public class ExecutionTache
{
	public int tempsDepart;
	public int tempsFin;
	public Tache tacheExecutee;
	
	@Override
	public String toString() 
	{
		//return "[debut=" + tempsDepart + ", fin=" + tempsFin +  ", tache=" + tacheExecutee + "]; ";
		return "[" + tempsDepart + "->" + tempsFin + " : " + tacheExecutee + "; ";
	}

	public ExecutionTache(int tempsDepart, int tempsFin, Tache tacheExecutee) 
	{
		this.tempsDepart = tempsDepart;
		this.tempsFin = tempsFin;
		this.tacheExecutee = tacheExecutee;
	}
	
	public ExecutionTache(ExecutionTache copie)
	{
		this.tempsDepart = copie.tempsDepart;
		this.tempsFin = copie.tempsFin;
		this.tacheExecutee = new Tache(copie.tacheExecutee);
	}

	public int getTempsDepart() 
	{
		return tempsDepart;
	}

	public Tache getTacheExecutee() 
	{
		return tacheExecutee;
	}
}
